<template>
  <div class="app">
    <h1>app</h1>
    <Child
      :msg="msg"
      @click="getson"
    ></Child>
  </div>
</template>
<script>
import Child from './Child.vue';
export default {
  data() {
    return {
      msg: '父组件的数据',
    };
  },
  methods: {
    getson(data) {
      console.log(data);
    },
  },
  components: {
    Child,
  },
};
</script>
<style lang="scss" scoped></style>
